package cool.lichuan.zabbix.domain.response;

import cool.lichuan.zabbix.util.FieldUtil;

import java.io.Serializable;

/**
 * 返回类
 * @author LiChuan
 * @date 2021/11/8 13:25
 */
public class BaseResult implements Serializable {
    @FieldUtil.BeanField("jsonrpc")
    private String jsonRpc;
    private int id;
    private Error error;

    public String getJsonRpc() {
        return jsonRpc;
    }

    public void setJsonRpc(String jsonRpc) {
        this.jsonRpc = jsonRpc;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Error getError() {
        return error;
    }

    public void setError(Error error) {
        this.error = error;
    }

    @Override
    public String toString() {
        return "BaseResult{" +
                "jsonRpc='" + jsonRpc + '\'' +
                ", id=" + id +
                ", error=" + error +
                '}';
    }

    private static final long serialVersionUID = -8580145423048028475L;
}
